import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import security from  './common/security'
import systemUser from './system/systemUser'
import entity from './system/entity'
import entityProperty from './system/entityProperty'
import baseSelectItem from './system/baseSelectItem'
import menu from './system/menu'
import role from './system/role'

import wechatUser from './business/wechatUser'
import userGroup from  './business/userGroup'


Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    security,
    systemUser,
    entity,
    entityProperty,
    baseSelectItem,
    menu,
    role,

    wechatUser,
    userGroup
  },
  getters
})

export default store
